package FinalMethod;

public class Animal {
    public static void main(String[] args) {
        Cat cat = null;
        Dog dog = null;
        for (int i = 0;i < 5;i++) {
            cat = new Cat();
            dog = new Dog();

        }
    System.out.println(cat.conter);
        System.out.println(dog.conter);
        System.out.println(cat.VERSION);
}}
class Cat{
    public static final String VERSION = "V2.4";
    public int conter = 0;
    public Cat(){
        conter++;
    }
}
class Dog{
    public static int conter = 0;
    public  Dog(){
        conter++;
    }




}
